package com.educatioin.manage.web.studytours.repository;

import com.educatioin.manage.web.studytours.po.StudyToursContactPo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

/**
 * Created by Zhangyin on 2018/5/5.
 */
@RepositoryRestResource(collectionResourceRel = "studyToursContactRepository", path = "studyToursContactRep")
public interface StudyToursContactRepository extends JpaSpecificationExecutor<StudyToursContactPo>, PagingAndSortingRepository<StudyToursContactPo, Long> {

    StudyToursContactPo findByNameAndMobile(String name,String mobile);
    List<StudyToursContactPo> findByName(String name);
}
